Skip to content

fix(blog): caption reflow fix + illustration-before-explanation reorder + attention example - #7

Merged
codemug merged 4 commits into
mainfrom
feat/llm-transformer-diagrams
Aug 1, 2026
Merged

codemug merged 4 commits into
mainfrom
feat/llm-transformer-diagrams

Conversation

@codemug

@codemug codemug commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Follow-up to #5. These commits were pushed to the feat/llm-transformer-diagrams branch after #5 was merged (which happened at 8e74a36), so they never reached main. This PR gets them in.

What's here

  • c80843f — caption reflow fix. The auto-advancing illustration caption changed line count between frames, growing the control bar and nudging the whole article up/down on every advance. Captions are now stacked in one grid cell so each figure reserves its tallest caption's height and never changes height while playing. (aria-live announcement preserved via a visually-hidden region.)
  • bc4ee27 — illustration-before-explanation reorder. All 13 figures now lead into the prose that explains them, instead of trailing it. Also adds a concrete coreference example to the attention section.
  • b714fb6 / 6259d27 — attention example polish. Simplify the "it's / raining" example and split the attention explanation around it (K-Q dot product → example → V-weighting).

Impact

Without this, the live site still has the caption jitter, figures after their explanations, and no attention example. Files touched (AnimRuntime.astro, the post .mdx) are disjoint from the comments/analytics merged in #6, so this merges cleanly.

Verified with npm run build; 13 figures render, no em/en-dashes.

🤖 Generated with Claude Code

codemug and others added 4 commits August 1, 2026 20:11
The auto-advancing caption swapped text each frame; a 1-line caption becoming 2 lines grew the control bar and nudged the whole article up and down on every advance. Stack all captions in one grid cell (visibility-toggled) so the bar always reserves the tallest caption's height at any width, and move the aria-live announcement to a visually-hidden span.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…tention example

Every figure now leads into the prose that explains it, rather than trailing it, so readers see the animation first and then read the deliberation. Also adds a concrete coreference example to the attention section ('...because it's raining' -> 'it's' attends to 'raining', not 'cat').

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Move the it's/raining example between the K-Q dot-product step and the V-weighting step, and reword the V-weighting sentence for clarity.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codemug
codemug merged commit 802c19b into main Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant